package com.ttc.ssm.po;

import java.util.Date;

/**
 * Created by Jiarui on 2016/7/25.
 */
public class Company {

    private int company_id;

    private String company_name;

    private int city_id;

    private String contact;

    private String contact_sex;

    private String zone_num;

    private String phone;

    private String telephone;

    private String fullname;

    private String e_mail;

    private String password;

    private String salt;

    private String ip;

    private Date date_added;

    private String date_added_string;

    public String getDate_added_string() {

        if(date_added!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            date_added_string = format1.format(date_added);

        }

        return date_added_string;
    }

    public String getDate_modified_string() {

        if(date_modified!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            date_modified_string = format1.format(date_modified);
        }

        return date_modified_string;
    }

    private Date date_modified;

    private String date_modified_string;

    private int status;

    private String city_name;

    private String zone_name;

    private int zone_id;

    private int detail_id;

    private int detail_status;

    public void setDetail_status(int detail_status) {
        this.detail_status = detail_status;
    }

    public int getDetail_status() {

        return detail_status;
    }

    public void setDetail_id(int detail_id) {
        this.detail_id = detail_id;
    }

    public int getDetail_id() {

        return detail_id;
    }

    public void setZone_id(int zone_id) {
        this.zone_id = zone_id;
    }

    public int getZone_id() {

        return zone_id;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    public void setZone_name(String zone_name) {
        this.zone_name = zone_name;
    }

    public String getCity_name() {

        return city_name;
    }

    public String getZone_name() {
        return zone_name;
    }

    public void setCompany_id(int company_id) {
        this.company_id = company_id;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public void setContact_sex(String contact_sex) {
        this.contact_sex = contact_sex;
    }

    public void setZone_num(String zone_num) {
        this.zone_num = zone_num;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public void setE_mail(String e_mail) {
        this.e_mail = e_mail;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setDate_added(Date date_added) {
        this.date_added = date_added;
    }

    public void setDate_modified(Date date_modified) {
        this.date_modified = date_modified;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getCompany_id() {

        return company_id;
    }

    public String getCompany_name() {
        return company_name;
    }

    public int getCity_id() {
        return city_id;
    }

    public String getContact() {
        return contact;
    }

    public String getContact_sex() {
        return contact_sex;
    }

    public String getZone_num() {
        return zone_num;
    }

    public String getPhone() {
        return phone;
    }

    public String getTelephone() {
        return telephone;
    }

    public String getFullname() {
        return fullname;
    }

    public String getE_mail() {
        return e_mail;
    }

    public String getPassword() {
        return password;
    }

    public String getSalt() {
        return salt;
    }

    public String getIp() {
        return ip;
    }

    public Date getDate_added() {
        return date_added;
    }

    public Date getDate_modified() {
        return date_modified;
    }

    public int getStatus() {
        return status;
    }
}
